package com.atmc.controller;


import com.atmc.entity.Goods;
import com.atmc.entity.ResponseResult;
import com.atmc.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class GoodsController {
    @Autowired
    private GoodsService goodsService;
    //订单列表
    @PostMapping(value = "findAllGoods")
    public List<Goods> findAll() {
        List<Goods> data = goodsService.findAll();
        return data;
    }

}
